package com.corffen.design.singleton;

public class LayoutInflate {

    public LayoutInflate(ContextImpl context) {
        System.out.println(context);
    }

    public static LayoutInflate from(ContextImpl context) {
        LayoutInflate layoutInflate = (LayoutInflate) context.getSystemService(ContextImpl.LAYOUT);
        if (layoutInflate == null) {
            throw new RuntimeException("layout not founded");
        }
        return layoutInflate;
    }
}
